
package com.example.softwareconfigurationcoursedesign.Admin;

import com.example.softwareconfigurationcoursedesign.LoginRegister.User;
import com.example.softwareconfigurationcoursedesign.ShopPage.ProductService;

public class Main {
    public static void main(String[] args) {
        User user = new User(456, "123", "666", "123");
//                LogService.addLogs(user,"666");
//                LogService.queryLogs(user);
        AdminServletImplement AdminServletImplement = new AdminServlet();
        AdminServletImplement.addUserToDatabase(user);
        //adminServlet.editUserInDatabase(user);
        //adminServlet.deleteUserFromDatabase(user.UserId);
        ProductServiceImplement productServiceImplement = new ProductService();
        //productService.searchProduct("666");
        //productService.addProduct(user.Name,6,"66","66");
        productServiceImplement.editProduct(6, "6", 6, "66", "6", "purl");
        productServiceImplement.deleteProduct(6);
    }
}
